<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>header</title>
</head>
<body>
<div class="navbar navbar-default" th:fragment="navbar">
    <a class="navbar-brand" href="#">首页</a>
    <ul class="nav navbar-nav">
        <li><a href="/user/userlist.html" th:href="@{/user/list}">用户列表</a></li>
    </ul>
    <ul class="nav navbar-nav navbar-right">
        <li><a href="#">个人中心</a></li>
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
               aria-expanded="false">
                <span th:text="${#httpServletRequest.remoteUser}"></span>
                <span class="caret"></span></a>
            <ul class="dropdown-menu">
                <li>
                    <a href="javascript:void(0)" id="logout">退出</a>
                </li>
            </ul>
        </li>
    </ul>
</div>
</body>
</html>